package com.example.wod.retrofitdemo.Bean;

/**
 * Created by Wod on 2015/12/30.
 */
public class Login {
    /**
     * code : SUCCESS
     * info : 登录成功
     * data : {"uid":"31","group_id":"1","balance":"55.37","uname":"13197709011","avatar":"http://wyx.wkidt.com/statics/images/noavatar_middle.gif","realname":"带多点","sex":"0","realname_status":"0","phone":"13197709011","max_energy":"5","energy":"5","distance_next":0,"open_key":"546e925000830378a3b806c5f577e3ee","user_key":"ptXEnbp0hktPB5MIDI8HPw=="}
     */

    private String code;
    private String info;
    /**
     * uid : 31
     * group_id : 1
     * balance : 55.37
     * uname : 13197709011
     * avatar : http://wyx.wkidt.com/statics/images/noavatar_middle.gif
     * realname : 带多点
     * sex : 0
     * realname_status : 0
     * phone : 13197709011
     * max_energy : 5
     * energy : 5
     * distance_next : 0
     * open_key : 546e925000830378a3b806c5f577e3ee
     * user_key : ptXEnbp0hktPB5MIDI8HPw==
     */

    private DataEntity data;

    public void setCode(String code) {
        this.code = code;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private String uid;
        private String group_id;
        private String balance;
        private String uname;
        private String avatar;
        private String realname;
        private String sex;
        private String realname_status;
        private String phone;
        private String max_energy;
        private String energy;
        private int distance_next;
        private String open_key;
        private String user_key;

        public void setUid(String uid) {
            this.uid = uid;
        }

        public void setGroup_id(String group_id) {
            this.group_id = group_id;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public void setUname(String uname) {
            this.uname = uname;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setRealname(String realname) {
            this.realname = realname;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public void setRealname_status(String realname_status) {
            this.realname_status = realname_status;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public void setMax_energy(String max_energy) {
            this.max_energy = max_energy;
        }

        public void setEnergy(String energy) {
            this.energy = energy;
        }

        public void setDistance_next(int distance_next) {
            this.distance_next = distance_next;
        }

        public void setOpen_key(String open_key) {
            this.open_key = open_key;
        }

        public void setUser_key(String user_key) {
            this.user_key = user_key;
        }

        public String getUid() {
            return uid;
        }

        public String getGroup_id() {
            return group_id;
        }

        public String getBalance() {
            return balance;
        }

        public String getUname() {
            return uname;
        }

        public String getAvatar() {
            return avatar;
        }

        public String getRealname() {
            return realname;
        }

        public String getSex() {
            return sex;
        }

        public String getRealname_status() {
            return realname_status;
        }

        public String getPhone() {
            return phone;
        }

        public String getMax_energy() {
            return max_energy;
        }

        public String getEnergy() {
            return energy;
        }

        public int getDistance_next() {
            return distance_next;
        }

        public String getOpen_key() {
            return open_key;
        }

        public String getUser_key() {
            return user_key;
        }
    }

//    /**
//     * code : SUCCESS
//     * info : 登录成功
//     * data : {"balance":"0.00","uname":"13197709011","avatar":"http://7xp4uq.com1.z0.glb.clouddn.com/2015-12-30_5683a202e0f6e.jpg","realname":"Lsq","sex":"0","realname_status":"0","phone":"13197709011","max_energy":"30","energy":"30","distance_next":106,"open_key":"546e925000830378a3b806c5f577e3ee","user_key":"cyEAsJasUfivNu9hW2JBSw=="}
//     */
//
//    private String code;
//    private String info;
//    /**
//     * balance : 0.00
//     * uname : 13197709011
//     * avatar : http://7xp4uq.com1.z0.glb.clouddn.com/2015-12-30_5683a202e0f6e.jpg
//     * realname : Lsq
//     * sex : 0
//     * realname_status : 0
//     * phone : 13197709011
//     * max_energy : 30
//     * energy : 30
//     * distance_next : 106
//     * open_key : 546e925000830378a3b806c5f577e3ee
//     * user_key : cyEAsJasUfivNu9hW2JBSw==
//     */
//
//    private DataEntity data;
//
//    public void setCode(String code) {
//        this.code = code;
//    }
//
//    public void setInfo(String info) {
//        this.info = info;
//    }
//
//    public void setData(DataEntity data) {
//        this.data = data;
//    }
//
//    public String getCode() {
//        return code;
//    }
//
//    public String getInfo() {
//        return info;
//    }
//
//    public DataEntity getData() {
//        return data;
//    }
//
//    public static class DataEntity {
//        private String balance;
//        private String uname;
//        private String avatar;
//        private String realname;
//        private String sex;
//        private String realname_status;
//        private String phone;
//        private String max_energy;
//        private String energy;
//        private int distance_next;
//        private String open_key;
//        private String user_key;
//
//        public void setBalance(String balance) {
//            this.balance = balance;
//        }
//
//        public void setUname(String uname) {
//            this.uname = uname;
//        }
//
//        public void setAvatar(String avatar) {
//            this.avatar = avatar;
//        }
//
//        public void setRealname(String realname) {
//            this.realname = realname;
//        }
//
//        public void setSex(String sex) {
//            this.sex = sex;
//        }
//
//        public void setRealname_status(String realname_status) {
//            this.realname_status = realname_status;
//        }
//
//        public void setPhone(String phone) {
//            this.phone = phone;
//        }
//
//        public void setMax_energy(String max_energy) {
//            this.max_energy = max_energy;
//        }
//
//        public void setEnergy(String energy) {
//            this.energy = energy;
//        }
//
//        public void setDistance_next(int distance_next) {
//            this.distance_next = distance_next;
//        }
//
//        public void setOpen_key(String open_key) {
//            this.open_key = open_key;
//        }
//
//        public void setUser_key(String user_key) {
//            this.user_key = user_key;
//        }
//
//        public String getBalance() {
//            return balance;
//        }
//
//        public String getUname() {
//            return uname;
//        }
//
//        public String getAvatar() {
//            return avatar;
//        }
//
//        public String getRealname() {
//            return realname;
//        }
//
//        public String getSex() {
//            return sex;
//        }
//
//        public String getRealname_status() {
//            return realname_status;
//        }
//
//        public String getPhone() {
//            return phone;
//        }
//
//        public String getMax_energy() {
//            return max_energy;
//        }
//
//        public String getEnergy() {
//            return energy;
//        }
//
//        public int getDistance_next() {
//            return distance_next;
//        }
//
//        public String getOpen_key() {
//            return open_key;
//        }
//
//        public String getUser_key() {
//            return user_key;
//        }
//    }
}
